import axios from 'axios'

// 获取各状态的嗡子列表：待发布、已发布、已下线
export function getArticleList(params) {
    return (
        axios({
            method: 'post',
            url: 'api/page/admin/pageInfo/queryPageList',
            params
        })
    )
}
// 修改文章状态：发布、下线
export function updataArticle(data) {
    return (
        axios({
            url:'api/page/admin/pageInfo/addPage',
            method: 'post',
            data
        })
    )
}
// 删除文章
export function deleteArticle(id) {
    return (
        axios.get(`api/page/admin/pageInfo/deletePage/${id}`)
    )
}